const {http} = require("./http")

function artHttp(){
    return http({
        url:'/api/article'
    })
}

function artDetail(id){
    return http({
        url:`/api/articleDetail?id=${id}`
    })
}
function artCollect({id,collected}){
    return http({
        url:'/api/articleCollect',
        data: {
            id,
            collected
        },
        method:'post'
    })
}
module.exports={
    artHttp,
    artDetail,
    artCollect
}